import service from '../utils/request'
//加入购物车
export function shopcart_add(payload={}) {
    return service.post('/api/shopcart/add',payload)
}
//数量减一
export function shopcart_sub(payload={}) {
    return service.post('/api/shopcart/sub',payload)
}
//获取购物车列表
export function shoplist_list(payload={}) {
    return service.get('/api/shopcart/list',{params:payload})
}
//清空购物车
export function shopcart_clear(payload={}) {
    return service.post('/api/shopcart/clear',payload)
}